export default {
    state: {
        id: 0,
        username: "",
        status: 0
    },

    mutations: {
        user (state, info) {
            for (const key in state) {
                if (typeof info[key] !== "undefined") {
                    state[key] = info[key]
                }
            }
        }
    }
}